import request from '@/axios'
import { UserType } from './types'

export const loginApi = (data: UserType): Promise<IResponse<string>> => {
  return request.post({ url: '/login', data })
}

export const loginOutApi = (): Promise<IResponse> => {
  return request.get({ url: '/loginOut' })
}
